﻿namespace GSC.WebControls
{
    using System;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    /// <summary>
    /// 头对象按钮点击事件。
    /// </summary>
    /// <remarks>头对象按钮点击事件。</remarks>
    public class BackgroundHeadControlItemClickEventArgs : CommandEventArgs
    {
        BackgroundHeadControlItem _item;
        /// <summary>
        /// 初始化头对象按钮点击事件。
        /// </summary>
        /// <remarks>初始化头对象按钮点击事件。</remarks>
        /// <param name="item">设置事件头对象。</param>
        /// <param name="commandName">设置与 LinkButton 控件关联的命令名。此值与 CommandArgument 属性一起传递到 Command 事件处理程序。</param>
        /// <param name="commandArgument">设置可选参数，该参数与关联的 CommandName 一起被传递到 Command 事件。</param>
        public BackgroundHeadControlItemClickEventArgs(BackgroundHeadControlItem item, string commandName, object commandArgument)
            : base(commandName, commandArgument)
        {
            _item = item;
        }
        /// <summary>
        /// 获取事件头对象。
        /// </summary>
        /// <remarks>获取事件头对象。</remarks>
        /// <value>GSC.WebControls.HeadItem</value>
        public BackgroundHeadControlItem Item
        {
            get
            {
                return _item;
            }
        }
    }
}
